package org.msn.client;

import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import lombok.extern.slf4j.Slf4j;
import org.msn.codec.MsgpackDecoder;
import org.msn.codec.MsgpackEncoder;
import org.msn.util.YamlUtil;
import org.msn.client.handler.ClientHandler;

import java.util.Map;

public interface ClientBoot {
    void run(String ip, Integer port) throws InterruptedException;
    void run(String ip, Integer port, ChannelHandler channelHandler) throws InterruptedException;
}